export default class Dep {
  constructor() {
    this.watchers = []
  }
  push(watcher) {
    this.watchers.push(watcher)
  }
  notify() {
    this.watchers.forEach((w) => w.update())
  }
}
